<%@ language="javascript" codepage=65001%><!--#include file="config.inc.asp"--><!--#include file="LIB/getLangOption.asp"--><!--#include file="LIB/getProductName.asp"--><!--#include file="LIB/getCompanyName.asp"--><!--#include file="LIB/loginAuth.asp"--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><%=getProductName()%> WEB management system</title>
<link href="CSS/reset.css" type="text/css" rel="stylesheet" />
<link href="CSS/global.css" type="text/css" rel="stylesheet" />
<link href="CSS/login.css" type="text/css" rel="stylesheet" />
<script src="JS/jquery-1.8.1.min.js" type="text/javascript"></script>
<script src="JS/global.js" type="text/javascript"></script>
<script type="text/javascript">
function doSubmit(){
    document.login.submit.disabled = true; //防止重复提交
    var user = document.login.user.value;
    var pass = document.login.pass.value;
    if (user=="" || pass==""){
        alert("The \"User\" and \"Password\" can not be empty !");
        document.login.submit.disabled = false;
        return false;
    }else{
        document.login.submit.disabled = false;
        return true;
    }
}
$(document).ready(function(){
    $('input[type="text"]').blur(function(){isAlphaDigit($(this))});
    //检查用户框中输入的字符
});
</script>
</head>
<body>
<div id="layout">
<p id="title">Login <%=getProductName()%> WEB management system</p>
<form action="login.asp" method="post" name="login" onsubmit="return doSubmit()">
<table>
<tr><td style="width:150px">User:</td><td><input type="text" maxlength="32" name="user" /></td></tr>
<tr><td>Password:</td><td><input type="password" maxlength="32" name="pass" /></td></tr>
<tr><td>Language:</td><td><select name="lang"><%=getLangOption()%></select></td></tr>
<tr><td colspan="2" style="text-align:center"><input type="reset" value="Reset"><input type="submit" value="Submit" name="submit"></td></tr>
</table>
</form>
<p id="Copyright">Copyright &#169;2009-2012  <%=getCompanyName()%>.</p>
</div><%loginAuth()%>
</body>
</html>
